/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Item;

/**
 *
 * @author Marco
 */
public class Dessert extends Item{
    private String type;

    public Dessert(String name, String price, String type){
        super(name, price);
        this.type = type;

    }

    /**
     * @return type of the dessert
     */
    public String getType(){
        return type;
    }

    public String getItemName(){
        String name = super.getName();
        return name;
    }

    public void print(){
        super.print();
        System.out.println("Type of Dessert:"+type);
    }
}
